<template>
	<div><GoodList :code="code"></GoodList></div>
</template>

<script>
import Msg from './Msg.js';
import GoodList from './GoodList.vue';
export default {
	data() {
		return {
			code: 0
		};
	},
	mounted() {
		console.log('Right Mounted...');
		var _this = this;
		Msg.$on('code', function(data) {
			_this.code = data;
			console.log('右侧接收到' + data);
		});	
	},
	components: {
		GoodList
	}
};
</script>

<style></style>
